package com.vueperson.vueperson.t1.test01.supers;

import lombok.Data;

@Data
public class CreditCard extends Account {
    private double debit;

    CreditCard(){
        super(12.12,"张三");
    }
    CreditCard(double balance,String account_number,double debit){
        super(balance,account_number);
        this.debit=debit;
    }


    public static void main(String[] args) {
        CreditCard creditCard=new CreditCard(13,"wang",1.2);
        System.out.printf("%.2f,%s,%s",creditCard.getBalance(),creditCard.getAccount_number(),creditCard.getDebit());

    }
}
